package com.ruoyi.business.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.validate.Type1Group;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 地址簿信息业务对象 site_info
 *
 * @author ruoyi
 * @date 2024-04-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SiteInfoBo extends BaseEntity {

    /**
     * 地址簿id
     */
    @NotNull(message = "地址簿id不能为空", groups = {EditGroup.class})
    private Long siteId;

    /**
     * 账号id(当前)
     */
    private Long relevanceUserId;

    /**
     * 姓名
     */
    @NotBlank(message = "联系人真实姓名不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 手机号
     */
    @NotBlank(message = "电话号码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String phone;

    /**
     * 寄件人省
     */
    @NotNull(message = "省不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long province;

    /**
     * 寄件人市
     */
    @NotNull(message = "市不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long city;

    /**
     * 寄件人区
     */
    @NotNull(message = "区不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long district;

    /**
     * 寄件人地址
     */
    @NotNull(message = "详细地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String address;

    /**
     * 经度
     */
    @NotBlank(message = "经度不能为空", groups = {AddGroup.class, EditGroup.class})
    private String longitude;

    /**
     * 纬度
     */
    @NotBlank(message = "纬度不能为空", groups = {AddGroup.class, EditGroup.class})
    private String latitude;
    /**
     * 公司名称
     */
    @NotBlank(message = "公司名称不能为空", groups = {Type1Group.class})
    private String companyName;
    /**
     * 是否默认（Y是 N否）
     */
    private String isDefault;

    /**
     * 备注
     */
    private String remark;

    /**
     * 其他参数
     */
    private String elseParams;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private Integer isDeleted;


}
